
#include <stdio.h>

int main()
{   
    //打开文件
    FILE *fp = fopen("test.txt","w");

    fputs("Hello, world!",fp);


    fclose(fp);
}